package com.ie.cloud.payment.constants;


import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * Created with FR
 *
 * @Author: DQ
 * @Date: 2025/07/17/14:59
 * @Description: 描述语句
 */
@Getter
public enum BizStatus {

    INTERNAL_ERROR(-1, "系统内部错误"),

    ORDER_IMPORT_FAILED(400012, "导入账单失败"),
    ORDER_IMPORT_SUCCESS(40000, "导入账单成功"),

    ORDER_GENERATION_FAILED(100001, "订单生成失败"),
    REFUND_ORDER_GENERATION_FAILED(100011, "退款单生成失败"),

    TIME_STAMP_CREATION_TIMEOUT(10002, "时间戳创建超时"),
    NOT_DATE_FOUNT(10007, "请求未携带时间"),


    THE_CORRESPONDING_BILLING_BATCH_RECORD_ALREADY_EXISTS(98101015, "对应账单批次记录已存在"),


    VALIDATION_FAILED(10003, "身份验证失败"),
    UNAUTHORIZED(401, "认证失败"),
    MD5_UNAUTHORIZED_ERROR(402, "MD5认证失败"),
    REPEATED_COMMIT_ERROR(403, "请求重复提交异常"),
    INVALID_FORMAT_PARAMETER(405, "无效提交数据格式"),
    ORDER_UPDATE_FAILED(10008, "订单更新失败"),


    REQUEST_VERIFICATION_FLAG_BIT(10005, "请求验证标识位错误"),


    DATE_TIME_FORMAT_ERROR(10004, "时间格式错误"),
    NULL_POINTER_ERROR(10006, "空数据异常"),

    THERE_IS_NO_DEFINITION_FOR_THIS_PAYMENT_CODE(10009, "此支付码无定义"),
    MERCHANT_DOES_NOT_EXIST(30001, "商户不存在"),

    ORDER_QUERY_SUCCESSFUL(20000,"订单查询成功"),
    ORDER_QUERY_FAILED(20001,"订单查询失败"),
    REFUND_ORDER_NOT_EXIST(20002, "退款订单不存在"),
    PAY_ORDER_NOT_EXIST(20003, "订单不存在"),
    REFUND_FAILED(20004, "退费失败"),
    PAY_SUCCESS_NOT_MODIFY_AMOUNT(20006, "支付成功，金额不能修改"),
    BIZ_TYPE_ERROR(20005, "业务类型错误");


    final int code;
    final String msg;

    BizStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
